 **Abeberese, Barnwal, Chaurey, Mukherjee
**This do-file will generate Figure A1
**Date: May 2021


**Set directories
*Add personal root path for your machine directory

global ROOT "/Users/rchaurey/Dropbox/Indonesia Firms/DataFolderRESTAT/"
global dofiles "${ROOT}/Code"
global data "${ROOT}/Input"
global output "${ROOT}/Output/"



********************************************************************************
*Figure A1
********************************************************************************
use "${data}/regulations", clear

egen group = group(lawID district)
tsset group year
tsfill, full
bys group: egen maxdistrict = max(district)
bys group: egen maxmayor_appyr = max(mayor_appyr)
replace district = maxdistrict
replace mayor_appyr = maxmayor_appyr

gen firstdemyr = mayor_appyr+5
gen post = year>=firstdemyr

drop if mayor_appyr==1994|mayor_appyr==1995
did_multiplegt overall  district year post, breps(50)  placebo(2)  cluster(district)
eret list
graph save "${output}/regulations_DIDMultipleGT", replace

